package com.cxs.shopstore.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxs
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    @TableId(value = "user_id", type = IdType.ID_WORKER_STR)
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String userPassword;

    @ApiModelProperty(value = "地址")
    private String userAddress;

    @ApiModelProperty(value = "电话")
    private String userTel;

    @ApiModelProperty(value = "用户创建时间")
    private Long userCreateTime;

    @ApiModelProperty(value = "是否管理员")
    private Integer userIsAdmin;

    @ApiModelProperty(value = "用户头像")
    private String userImg;

    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private String imgKey;

    @TableField(exist = false)
    private String imgBase64;
}
